/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.krazevina.luatgiaothong;

import com.sun.lwuit.Button;
import com.sun.lwuit.Font;
import com.sun.lwuit.Label;
import com.sun.lwuit.TextArea;
import com.sun.lwuit.plaf.Style;

/**
 *
 * @author XXX
 */
public class S {
    static void setBtnBotStyle(Button t){
        Style s = new Style();
        s.setBorder(null);
        s.setBgTransparency(0);
        s.setMargin(0, 0, 0, 0);
        t.setUnselectedStyle(s);
        t.setSelectedStyle(s);
        t.setPressedStyle(s);
        t.getStyle().merge(s);
    }
    
    static void setBtnLangStyle(Button t){
        Style s = new Style();
        s.setBorder(null);
        s.setBgTransparency(0);
        s.setMargin(6, 6, 0, 6);
        s.setFgColor(0x888888);
        t.setUnselectedStyle(s);
        t.setSelectedStyle(s);
        t.setPressedStyle(s);
        t.getStyle().merge(s);
    }
    
    static void setBtnSearchStyle(Button t){
        Style s = new Style();
        s.setBorder(null);
        s.setBgTransparency(0);
        s.setMargin(6, 6, 6, 6);
        t.setUnselectedStyle(s);
        t.setSelectedStyle(s);
        t.setPressedStyle(s);
        t.getStyle().merge(s);
    }
    
    static void sets(TextArea t){
        Style s = new Style();
        s.setBorder(null);
        s.setBgTransparency(0);
        s.setMargin(6, 6, 0, 0);
        s.setFgColor(0x000000);
        t.setUnselectedStyle(s);
        t.setSelectedStyle(s);
        t.setPressedStyle(s);
        t.getStyle().merge(s);
    }
    static void setTrans(Label text1){
        Style s = new Style();
        s.setFgColor(0x000000);
        s.setBgTransparency(0);
        s.setFont(Font.createSystemFont(Font.FACE_PROPORTIONAL, Font.STYLE_BOLD, Font.SIZE_SMALL));
        s.setMargin(0, 0, 0, 0);
        text1.setUnselectedStyle(s);
        text1.setPressedStyle(s);
        text1.setSelectedStyle(s);
        text1.setDisabledStyle(s);
    }
    static void setTrans1(Label text1,int color){
        Style s = new Style();
        s.setBorder(null);
        s.setBgTransparency(0);
        s.setFgColor(color);
        s.setFont(Font.createSystemFont(Font.FACE_SYSTEM, Font.STYLE_PLAIN, Font.SIZE_SMALL));
        s.setMargin(0, 0, 0, 0);
        text1.setUnselectedStyle(s);
        text1.setPressedStyle(s);
        text1.setSelectedStyle(s);
        text1.setDisabledStyle(s);
    }
}
